<%@page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://qzone.qq.com/251303704/pagination" prefix="p" %>
<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>"/>
		<meta charset="utf-8" />
		<title>Document</title>
		<link rel="stylesheet" href="css/shoppingzhanshi.css?_<%=new Date().getTime() %>" />
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript">
			$(function() {
				$("#ss").val(${type });
			});
		</script>
	</head>
	<body>
			<div id="hezi">
				<form action="Shoppingzhanshi.shtml" method="post" id="form1">
					<p class="my"><span style="font-size: 30px;">商品订单</span>
					<span style="margin-left: 80px; margin-top: 20px;">订单编号：<input style="height: 25px;" type="text" name="orderid" value="${orderid }" >&emsp;
					状态:<select style="width: 80px;height: 25px;" name="type" id="ss">
						<option value="-1">请选择</option>
					<c:forEach items="${liststate}" var="state">
						<option value="${state.state_id }">${state.state_state}</option>
					</c:forEach>
						
					</select>
					&emsp;<input type="submit" style="width: 70px; height: 30px;" value="查询" class="chaxun"></span></p>
				
					<c:if test="${empty list }">
						<div style="margin: auto; width: 200px; margin-bottom: 30px; font-size: 18px;">抱歉,您还没有订单</div>
					</c:if>
					<c:if test="${not empty list}">
						<c:forEach items="${list }" var="o"> 
							<div class="yi">
								<div class="yi_a">订单编号: <span style="font-size: 20px;color: red;">${o.o_idname}</span>&ensp;&ensp;|&ensp;&ensp;时间: <span style="font-size: 14px;">${o.o_Date }</span> <span class="yi_b">订单金额: <span style="color: red;">${o.o_price }</span> 元</span><span class="yi_c">${o.getState().getState_state() }</span><span class="yi_d"><a href="ShoppingMingXi.shtml?oid=${o.o_id }">订单详情</a></span></div>
							</div>
						</c:forEach>
						<p:page pageBean="${pageBean }"/>
					</c:if>
					
					
				</form>
			</div>
	</body>
</html>
